.client-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.main {
    width: 800px;
    height: 540px;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;

    display: flex;
    z-index: 2;
}
.main .left {
    width: 280px;
    height: 100%;
    background-color: rgb(59, 59, 59);

    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px
}

.main .right {
    width: 520px;
    height: 100%;

    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;

    padding: 0 20px;
}

.cover {
    width: 100%;
    height: 100%;
    background-image: url(../img/back.jpg);
    background-size: cover;
    background-position: center center;
    border-radius: 5px;
    background-repeat: no-repeat;

    position: absolute;
    top: 0px;
    left: 0px;

    z-index: 1;
    filter: blur(6px);
}

.main .left .user {
    height: 65px;
    font-size: 20px;
    line-height: 80px;
    color: white;
    padding: 0 34px;
}

.main .left .search {
    height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    justify-content: center;
    display: flex;
    align-items: center;
}

.main .left .search input {
    height: 34px;
    width: 180px;
    line-height: 34px;
    font-size: 14px;
    color: white;
    background-color: rgb(38,41,46);

    border: none;
    outline: none;

    padding-left: 10px;
    border-radius: 5px;
}

.main .left .search button {
    height: 34px;
    width: 34px;
    background-color: rgb(38,41,46);    
    
    border: none;
    outline: none;

    border-radius: 5px;

    background-image: url(../img/搜索.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center center;
}

.main .left .search button:active{
    background-color: grey;
}   

.main .left .tab {
    height: 50px;
    display: flex;
    align-items: center;
}

.main .left .tab .tab-session {
    height: 100%;
    width: 50%;
    
    background-image: url(../img/dialog1.png);
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center center;

}

.main .left .tab .tab-friend {
    height: 100%;   
    width: 50%;

    background-image: url(../img/member.png);
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center center;/*居中*/
}

.main .left .list {
    height: 385px;
    overflow: auto;/*滚动条*/
}

.main .left .list li {
    height: 70px;
    padding: 10px 20px;/*上下左右边距*/
    color: white;
    border-top: 1px solid black;/*边线*/
}

.main .left .list li h3,
.main .left .list li p {
    height: 20px;
    line-height: 20px;
    font-size: 14px;
}

.main .left .list .selected {
    background-color: rgb(46, 56, 65);
}

.main .left .list li h4{
    height: 30px;
    line-height: 40px;
    font-size: 20px;/*字体大小*/
}
/* 隐藏 */
.hide {
    display: none;
}

::-webkit-scrollbar {
    display: none;
}

.main .right .title{
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 350px;/*待定*/
    
    overflow: auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show .message {
    margin-top: 10px;
    display: flex;
}

.main .right .message-show .message-left{
    justify-content: flex-start;
}

.main .right .message-show .message-right{
    justify-content: flex-end;
}

.main .right .message-show .message .box {
    width: 300px;
}
.main .right .message-show .message .box h4{
    height: 20px;
    font-weight: normal;
    font-size: 16px;
    line-height: 20px;
}

.main .right .message-show .message .box p{
    padding: 15px;
    border-radius: 10px;
}

.main .right .message-show .message-left .box p{
    background-color: #fff;
} 

.main .right .message-show .message-right .box p{
    background-color: #24e169;
}

.main .right .message-input {
    display: block;
    width: 100%;
    height: 100px;
    border: none;
    outline: none;
    background-color: rgb(238, 238, 238);
    padding: 5px;

    resize: none;
}
.main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.main .right .ctrl button {
    height: 35px;
    width: 100px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;

    border-radius: 5px;      
}

.main .right .ctrl button:active{
    background-color: grey;
    color: white;
}